package com.ruoyi.xsp.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 评论对象 xsp_comment
 * 
 * @author zhiminhu
 * @date 2021-03-01
 */
public class XspComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 主题id */
    private Integer topicId;

    /** 1为课程，2为集会，3为商品 */
    private Integer topicType;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论者id */
    @Excel(name = "评论者id")
    private Long fromUid;

    /** 冗余用户昵称 */
    @Excel(name = "冗余用户昵称")
    private String nickname;

    /** 冗余用户头像 */
    @Excel(name = "冗余用户头像")
    private String thumbImg;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private Integer isTop;

    /** 是否热评 */
    @Excel(name = "是否热评")
    private Integer isHot;

    /** 点赞次数 */
    @Excel(name = "点赞次数")
    private Integer likeNum;

    /** 回复次数 */
    @Excel(name = "回复次数")
    private Integer replyNum;

    /** 是否回复 */
    @Excel(name = "是否回复")
    private Integer isReply;

    /** 评论状态 */
    @Excel(name = "评论状态")
    private Integer status;

    /** 二级评论 */
    private List<XspCommentReply> commentReplys;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTopicId(Integer topicId) 
    {
        this.topicId = topicId;
    }

    public Integer getTopicId() 
    {
        return topicId;
    }
    public void setTopicType(Integer topicType) 
    {
        this.topicType = topicType;
    }

    public Integer getTopicType() 
    {
        return topicType;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setFromUid(Long fromUid)
    {
        this.fromUid = fromUid;
    }

    public Long getFromUid()
    {
        return fromUid;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setThumbImg(String thumbImg) 
    {
        this.thumbImg = thumbImg;
    }

    public String getThumbImg() 
    {
        return thumbImg;
    }
    public void setIsTop(Integer isTop) 
    {
        this.isTop = isTop;
    }

    public Integer getIsTop() 
    {
        return isTop;
    }
    public void setIsHot(Integer isHot) 
    {
        this.isHot = isHot;
    }

    public Integer getIsHot() 
    {
        return isHot;
    }
    public void setLikeNum(Integer likeNum) 
    {
        this.likeNum = likeNum;
    }

    public Integer getLikeNum() 
    {
        return likeNum;
    }
    public void setReplyNum(Integer replyNum) 
    {
        this.replyNum = replyNum;
    }

    public Integer getReplyNum() 
    {
        return replyNum;
    }
    public void setIsReply(Integer isReply) 
    {
        this.isReply = isReply;
    }

    public Integer getIsReply() 
    {
        return isReply;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public List<XspCommentReply> getCommentReplys() {
        return commentReplys;
    }

    public void setCommentReplys(List<XspCommentReply> commentReplys) {
        this.commentReplys = commentReplys;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("topicId", getTopicId())
            .append("topicType", getTopicType())
            .append("content", getContent())
            .append("fromUid", getFromUid())
            .append("nickname", getNickname())
            .append("thumbImg", getThumbImg())
            .append("isTop", getIsTop())
            .append("isHot", getIsHot())
            .append("likeNum", getLikeNum())
            .append("replyNum", getReplyNum())
            .append("isReply", getIsReply())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
